/*OWmq6Ugo6jPE4W7xoi1UXlXa6Uo/GAeDS7JN8mWOERFI1YSIxjzhvlCZGmRoUoRn*/


export default function afterEvent(key, value, moduleId,props, changedrows, i, s, g) {
    if (key == 'objtype') {
        let objArry = ['customer', 'supplier','pk_deptid','pk_psndoc'];
        for(let i = 0;i<objArry.length;i++){
            if(i ==value){
               this.props.search.changeItemVisibleByField(moduleId,objArry[i], true);
            }else{
                this.props.search.changeItemVisibleByField(moduleId,objArry[i],false);
            }
        }

    }
}
/*OWmq6Ugo6jPE4W7xoi1UXlXa6Uo/GAeDS7JN8mWOERFI1YSIxjzhvlCZGmRoUoRn*/